package com.ch04;

public class Warehouse {
	public static void main(String[] args) { // (4)
		Light.writeCount(); // Invoked using class name
		Light light1 = new Light(100, true, "basement"); // Create an object
		System.out.println("Value of counter: " + Light.counter // Accessed via
																// class name
		);
		Light light2 = new Light(200, false, "garage"); // Create another object
		light2.writeCount(); // Invoked using reference
		Light light3 = new Light(300, true, "kitchen"); // Create another object
		System.out.println("Value of counter: " + light3.counter // Accessed via
																	// reference
		);
		final int i;
	}
}
